#include <stdio.h>

float
ctof(float c)
{
    float f = ((9.0 / 5.0) * c) + 32.0;
    return f;
}

float
ftoc(float f)
{
    float c =  5 * (f - 32.0) / 9.0;
    return c;
}

float
ctok(float c)
{
    float k = c + 273.0;
    return k;
}

float
ktoc(float k)
{
    float c = k - 273.0;
    return c;
}

// the kind of shortcut your teacher would kill you for using!
float
ftok(float f)
{
    float k, c;
    c = ftoc(f);
    k = ctok(c);
    return k;
}

float
ktof(float k)
{
    float f, c;
    c = ktoc(k);
    f = ctof(c);
    return f;
}
